<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>注册</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/layui/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/login.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/zhiwang.css}"/>
</head>
<body>
<div th:replace="unit/main-unit :: nav"></div>
<div class="index-all">
    <div class="index-main">
        <div class="index-mid" style="margin-top: 30px">
            <div class="index-left"><p class="index-p"><a href="javascript:void(0); ">登录</a></p></div>
            <div class="index-right"><p class="index-p"><a href="javascript:void(0);"> 注册</a></p></div>
        </div>
        <div class="index-form">
            <form class="layui-form" action="">
                <!--用户名-->
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="text" name="studentid" required lay-verify="required" placeholder="请输入用户名"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>
                <!--密码-->
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="text" name="scoolname" required lay-verify="required" placeholder="请输入学号"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="text" name="name" required lay-verify="required" placeholder="请输入姓名"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt" style="width:200px;margin: 0 auto">
                        <input type="radio" class="index-input" name="sex" value="男" title="男">
                        <input type="radio" class="index-input" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="text" name="phonenumber" required lay-verify="required" placeholder="请输入手机号"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>
                <div class="layui-form-item index-item">
                    <div class="layui-input-block index-autt">
                        <input type="text" name="address" required lay-verify="required" placeholder="请输入地址"
                               autocomplete="off" class="layui-input index-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button onclick="login()" type="button" class="layui-btn index-button">立即注册</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{/js/jquery-3.4.1.min.js}"></script>
<script type="text/javascript" th:src="@{/js/login.js}"></script>
<script type="text/javascript" th:src="@{/js/layui.all.js}"></script>
<script type="text/javascript">
    var form=layui.form;
</script>
</body>
</html>